package org.example.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.domain.po.ErpLog;
import org.example.domain.query.LogQuery;
import org.example.domain.vo.ErpLogVO;
import org.example.service.ErpLogService;
import org.example.mapper.ErpLogMapper;
import org.springframework.stereotype.Service;

/**
* @author DELL
* @description 针对表【erp_log(操作日志)】的数据库操作Service实现
* @createDate 2024-10-31 14:48:22
*/
@Service
public class ErpLogServiceImpl extends ServiceImpl<ErpLogMapper, ErpLog>
    implements ErpLogService{
    
    @Override
    public IPage<ErpLogVO> queryLogPage(LogQuery logQuery) {
        Page<ErpLogVO> page = new Page<>(logQuery.getCurrent(), logQuery.getSize());
        return baseMapper.queryLogPage(page, logQuery);
    }
}




